package com.deuwise.system.entity.from;

import com.deuwise.common.validator.group.AddGroup;
import com.deuwise.common.validator.group.UpdateGroup;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

@Data
public class SortModel {

    @ApiModelProperty("主键id")
    @NotBlank(message ="主键id不能为空",groups = {AddGroup.class, UpdateGroup.class})
    private String id;

    @NotBlank(message ="排序值不能为空",groups = {AddGroup.class, UpdateGroup.class})
    @ApiModelProperty("排序值")
    private Integer orderNum;
}
